package org.jingouzhui.infrastructure.persistent.dao;

import org.apache.ibatis.annotations.Mapper;
import org.jingouzhui.domain.strategy.model.entity.StrategyAwardEntity;
import org.jingouzhui.infrastructure.persistent.po.StrategyAward;

import java.util.List;

/**
 * @description: 奖品抽奖概率DAO层
 * @author: jingouzhui
 * @date: 2025/4/23 22:32
 */
@Mapper
public interface IStrategyAwardDAO {

    List<StrategyAward> queryStrategyAwardList();

    /**
     * 根据策略Id查询策略对应的奖品
     * @param strategyId
     * @return List
     */
    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);

    String queryRuleModelByStrategyIdAndAwardId(StrategyAwardEntity strategyAwardEntity);

    void updateStrategyAwardStock(StrategyAward strategyAward);
}
